import React, { Component } from 'react'
import {HashRouter, Route, Redirect} from 'react-router-dom'
import Whole from '../whole/index'
import RiskTable from '../component/RiskTable'

export default class Router extends Component {
  render() {
    return (
      <div>
          <HashRouter>
              <switch>
                <Route path="/myOwner" component={Whole}/>
                <Route path="/myFavorite" component={RiskTable}/>
                <Route path="/myTask" component={Whole}/>

                <Redirect from='/' to='/myOwner' exact/>
              </switch>
          </HashRouter>
      </div>
    )
  }
}
